<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="err"></div>

 
    <script src="./errorListener.js"></script>
    <script src="./statistics.js"></script>
    <script>
        const logObj = statistics('localhost:8899');
        errorListener(function(err) {
            console.log(err)
            logObj.sendError(err);
        })

        logObj.sendLog({
            et: 'click',
            data: {
                block_name: '点击'
            }
        })

        function foo () {
            var a = 11;
            bar(a);
        }
        
        function bar (a) {
            var b = a + 10;
            return c ;
        }
        console.log(foo());
        
    </script>
</body>
</html>